package com.coreJava.设计模式.责任链模式的过滤器;

/**
 * 作者: LCG
 * 日期: 2019/9/5 16:16
 * 描述:
 */
public class TestMyFilter {
    public static void main(String[] args) {

        MyFilterChainImpl filterChain=new MyFilterChainImpl();

        MyFilterImpl1 myFilterImpl1=new MyFilterImpl1();
        MyFilterImpl2 myFilterImpl2=new MyFilterImpl2();
        MyFilterImpl3 myFilterImpl3=new MyFilterImpl3();

        filterChain.registerFilter(myFilterImpl1);
        filterChain.registerFilter(myFilterImpl2);
        filterChain.registerFilter(myFilterImpl3,0);

        filterChain.chain();

    }
}
